module.exports = {
    parseLessonActionHTML: function(t) {
        if (!t) return [];
        if ("string" != typeof t) return [];
        var e = /<a kp-session-next-status=\"([0-9a-zA-Z_]+)\">([^<]+)<\/a>/gim, a = t.match(e);
        return a ? a.map(function(t) {
            return {
                nextStatus: t.replace(e, "$1"),
                text: t.replace(e, "$2")
            };
        }) : (e = /value=\"([^\"]+)\" kp-session-next-status=\"([0-9a-zA-Z_]+)\"/gim, (a = t.match(e)) ? a.map(function(t) {
            return {
                nextStatus: t.replace(e, "$2"),
                text: t.replace(e, "$1")
            };
        }) : []);
    },
    parsePackageActionHTML: function(t) {
        if (!t) return [];
        if ("string" != typeof t) return [];
        var e = /<a package-next-status=\"([0-9a-zA-Z_]+)\">([^<]+)<\/a>/gim, a = t.match(e);
        return a ? a.map(function(t) {
            return {
                nextStatus: t.replace(e, "$1"),
                text: t.replace(e, "$2")
            };
        }) : (e = /value=\"([^\"]+)\" package-next-status=\"([0-9a-zA-Z_]+)\"/gim, (a = t.match(e)) ? a.map(function(t) {
            return {
                nextStatus: t.replace(e, "$2"),
                text: t.replace(e, "$1")
            };
        }) : []);
    }
};